package Interafce.InterfaceTest1;

public class Demo1 {
    public static void main(String[] args) {
        frog frog=new frog("小青",1);
        System.out.println(frog.getName()+","+ frog.getName());
        frog.eat();
        frog.swim();
        Rabbit r=new Rabbit("xiaobai",18);
        System.out.println(r.getAge()+","+r.getName());
        r.eat();
    }
}
